package com.liugui.basicsgrammar;

import java.util.Scanner;
public class Sum{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);

        System.out.print("请输入x1:");
        int x1 = in.nextInt();
        System.out.print("请输入x2:");
        int x2 = in.nextInt();

        System.out.print("x1 + x2 = " + (x1+x2));//不加括号 从左往右 按照优先级 会先进行拼接处理
    }
}